package com.itcheetah.springevent.myPublisherListener;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @className: MyEventListener
 * @description: TODO
 * @author: cheetah
 * @date: 2022/4/7 11:31
 * @Version: 1.0
 */
@Component
public class MyEventListener implements ApplicationListener<MyEvent> {

    @Override
    public void onApplicationEvent(MyEvent event) {
        System.out.println("我监听到你的消息了");
    }
}
